﻿
@using Single_SignOn.Models
@using Single_SignOn.ResX
@model IEnumerable<Single_SignOn.Areas.Handheld.Models.Language>
<table style="width: 100%" class="right">
    <tr>
        <td style="vertical-align: middle;
                                                                                                   font-weight: bolder;" class="right">
            <font style="font: 9pt 'Lucida Grande',lucida,helvetica,arial,sans-serif;">  @ResourceTools.GetResource("Resource", "Language") : </font>@Html.DropDownList("Language", new SelectList(Model,"Name","Description",((UserProfile)Session["UserInfo"]).Language),new { @class="ddl"})
        </td>
    </tr>
</table>
<div class="display">
    <a id="urlLanguage" href="@Html.AttributeEncode(Url.Action("ChangeLanguage", "ApplicationList", new { language="",company=""}))" style="display:none;"></a>
    
    <script type="text/javascript">
        /**/
        $(document).ready(function () {
            $('#Language').change(function () {
                document.location.href = $('#urlLanguage').attr('href') + "?language=" + $('#Language').val() + "&company=" + $('#Company').val();
            });
        }); 
    </script>
</div>
